Work Analysis with Resource-Aware Session Types
نویسندگان
چکیده
While there exist several successful techniques for supporting programmers in deriving static resource bounds for sequential code, analyzing the resource usage of message-passing concurrent processes poses additional challenges. To meet these challenges, this article presents an analysis for statically deriving worst-case bounds on the total work performed by message-passing processes. To decompose interacting processes into components that can be analyzed in isolation, the analysis is based on novel resource-aware session types, which describe protocols and resource contracts for inter-process communication. A key innovation is that both messages and processes carry potential to share and amortize cost while communicating. To symbolically express resource usage in a setting without static data structures and intrinsic sizes, resource contracts describe bounds that are functions of interactions between processes. Resource-aware session types combine standard binary session types and type-based amortized resource analysis in a linear type system. This type system is formulated for a core session-type calculus of the language SILL and proved sound with respect to a multiset-based operational cost semantics that tracks the total number of messages that are exchanged in a system. The effectiveness of the analysis is demonstrated by analyzing standard examples from amortized analysis and the literature on session types and by a comparative performance analysis of different concurrent programs implementing the same interface.
منابع مشابه
Session-Aware Popularity Resource Allocation for Assured Differentiated Services
Differentiated Service networks (DS) are fair in the way that different types of traffic can be associated to different network services, and so to different quality levels. However, fairness among flows sharing the same service may not be provided. Our goal is to study fairness between multirate multimedia sessions for an assured DS service, in a multicast network environment. To achieve this ...
متن کاملSignaling Protocol for Session-Aware Popularity-Based Resource Allocation
The Differentiated Services model (DS) maps traffic into services that offer different quality levels. However, flows are treated unfairly in each service, since the DS model lacks a policy to distribute service bandwidth between flows that form the service aggregate traffic. We present a signaling protocol called Session-Aware Popularity-based Resource Allocation (SAPRA) that fairly distribute...
متن کاملRfc 4579 Sip Cc
This specification defines conferencing call control features for the Session Initiation Protocol (SIP). This document builds on the Conferencing Requirements and Framework documents to define how a tightly coupled SIP conference works. The approach is explored from the perspective of different user agent (UA) types: conferenceunaware, conference-aware, and focus UAs. The use of Uniform Resourc...
متن کاملLogic-Based Domain-Aware Session Types
In prior work, an interpretation of linear logic propositions as session types for communicating processes was proposed. In a concurrent setting, it defines a tight propositions-as-types/proofs-as-programs correspondence, in the style of the CurryHoward isomorphism. In this paper, we generalize such an interpretation by relying on a variant of intuitionistic linear logic with hybrid logic const...
متن کاملSession Types with Runtime Adaptation: Overview and Examples
In recent work, we have developed a session types discipline for a calculus that features the usual constructs for session establishment and communication, but also two novel constructs that enable communicating processes to be stopped, duplicated, or discarded at runtime. The aim is to understand whether known techniques for the static analysis of structured communications scale up to the chal...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- CoRR
دوره abs/1712.08310 شماره
صفحات -
تاریخ انتشار 2017